<template>
	<view class="container">
		<view class="header align-center justify-between plr14 ft16">
			<view class="align-center searchbox justify-between">
				<uv-input placeholder="请输入课程名称查询" border="none" placeholder-style="color:#fff"></uv-input>
				<uv-icon name="search" size="30" color="#fff"></uv-icon>
			</view>
			
			
		</view>
		<view  style="height: 110rpx;">

		</view>
		<view class="moduletitle bgWhite align-center justify-between plr15">
				<text></text>
				<view class="ft16 flex1 " style="text-align: center;">
					培训分类
				</view>
				<view class="align-center pickerbox justify-between plr12">
					<view class="">
						{{'请选择培训分类'}}
					</view>
						<uv-icon name="arrow-down" color="#969696"></uv-icon>
				</view>
		</view>
		<view class="plr15">
			


		

			
			<view class="pxList flex-wrap justify-between">
				<view class="bgWhite posRelative plr10 ptb10 pxitem  justify-between" v-for="i in 5 ">
					<image src="/static/images/img_internet.png" mode=""></image>
					<view class="flex1 flex-col justify-between">
						<view class="clamp2 title">
						<text class="tag">收费</text>	煤矿地测防治水安全培训
						</view>
						<view class="start radius5">
							报名开始:
						</view>
						<view class="end radius5">
							报名截至:
						</view>
						<view class="align-center justify-between">
						 <view class="align-center">
						 	<uv-icon name="clock-fill" color="#0082DB" size="14"></uv-icon> <text class="ml5"> 学时:88	</text>
						 </view>  <text style="font-weight: bold;">￥999</text>	
						</view>
						
					</view>
					<view class="allPeo posAbsort">
						全员
					</view>
				</view>

			</view>
			
			
		</view>


	<customTab :active="0"></customTab>
	</view>
</template>

<script>
	import customTab from '../../components/customTab.vue';
	let app = getApp();
	export default {
		components: {
customTab
		},
		data() {
			return {
				list: [
					'https://cdn.uviewui.com/uview/swiper/swiper1.png',
					'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					'https://cdn.uviewui.com/uview/swiper/swiper3.png',
				]
			}
		},
		onLoad(opt) {


		},
		mounted() {



			// 使用函数生成一个正弦波形


		},

		methods: {

			generateSineWave(length, amplitude, frequency) {
				var wave = [];
				for (var i = 0; i < length; i++) {
					// 使用2π来确保正弦波在整个长度中循环
					var radians = (i / length) * 2 * Math.PI * frequency;
					wave.push(amplitude * Math.sin(radians));
				}
				return wave;
			}
		}





	}
</script>
<style scoped lang="scss">
	page {
		color: #343434;
	}

	.header {
		width: 100%;
		height: 110rpx;
		background-color: #0F7EF2;
		
		box-sizing: border-box;
		color: #38393B;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 999;
		display: flex;

		image {
			width: 42rpx;
		}
	}

	.grid {
		box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
		height: 340rpx;
		font-size: 24rpx;
		color: #343434;

		.griditem {
			width: 25%;
			height: 170rpx;
			display: inline-flex !important;
		}

		image {
			width: 90rpx;
		}
	}

	.lookmore {
		color: #B6B6B6;
		font-size: 24rpx;
		line-height: 24rpx;
	}

	.pxitem {
		box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
		margin-top: 20rpx;
		width: 100%;
		box-sizing: border-box;
		border-radius: 18rpx;
		color: #969696;
		font-size: 24rpx;

		view {
			font-size: 24rpx;
			color: #0082DB;
			
			// margin: 20rpx 0 30rpx;
		}
		.title{
			font-size: 32rpx;
			font-weight: bold;
		}
		image {
			width: 306rpx;
			height: 236rpx;
			border-radius: 18rpx;
			margin-right: 20rpx;
			flex-shrink: 0;
		}

		.allPeo {
			position: absolute;
			color: #06355B;
			background-color: rgba(255, 219, 109, .95);
			top: 20rpx;
			left: 240rpx;
			margin: 0;
			line-height: 1;
			width: 40rpx;
			text-align: center;
		}
		.start{
			background-color: #E5F2FC;
			color: #0082DB!important;
			font-size: 24rpx;
			text-align: center;
			padding: 4rpx 6rpx;
			
		}
		.end{
			font-size: 24rpx;
			padding: 4rpx 6rpx;
			color: #F65A58;
			text-align: center;
			    background: rgba(246, 90, 88, .1);
		}
	}
	.searchbox{
		background-color: rgba(145, 190, 255, .3);
		border-radius: 12rpx;
		height: 84rpx;
		width: 100%;
		padding: 0 30rpx;
	}
	.moduletitle{
		height: 116rpx;
		text{
			  
			    width: 6rpx;
			    height:18rpx;
			    background: #0082DB;
			    border-radius: .5rem;
			    display: block;
		}
	}
	.pickerbox{
		background-color: #fafafa;
		width: 500rpx;
		height: 72rpx;
		color: #969696;
	}
	.tag{
		background-color: rgb(255, 219, 109);
		color: #fff;
		font-size: 26rpx;
		padding: 4rpx 8rpx;
		border-radius: 10rpx;
		margin-right: 10rpx;
	}
		
	
</style>